Skip to content

[CI] Fix test_communication.py and add port cleanup#7021

Merged
EmmonsCurse merged 1 commit intoPaddlePaddle:developfrom
EmmonsCurse:fix_unit_test_0325
Mar 26, 2026
Merged

[CI] Fix test_communication.py and add port cleanup#7021
EmmonsCurse merged 1 commit intoPaddlePaddle:developfrom
EmmonsCurse:fix_unit_test_0325

Conversation

@EmmonsCurse
Copy link
Collaborator

Motivation

  • The default value of FD_CUSTOM_AR_MAX_SIZE_MB was changed from 64 to 8, which caused mismatches with existing test expectations.
  • Some CI failures were caused by ports not being released when previous tasks exited abnormally, leading to port conflicts in subsequent runs.
  • These issues affected CI stability, especially in distributed and communication-related tests.

Modifications

  • Updated test expectations in test_communication.py to align with the new default value of FD_CUSTOM_AR_MAX_SIZE_MB (64 → 8).
  • Added port cleanup logic to ensure ports are properly released before test execution.
  • Synchronized updates across related test files, including communication, engine, and resource manager tests.

Usage or Command

N/A

Accuracy Tests

N/A

Checklist

  • Add at least a tag in the PR title.
    • Tag list: [[FDConfig],[APIServer],[Engine], [Scheduler], [PD Disaggregation], [Executor], [Graph Optimization], [Speculative Decoding], [RL], [Models], [Quantization], [Loader], [OP], [KVCache], [DataProcessor], [BugFix], [Docs], [CI], [Optimization], [Feature], [Benchmark], [Others], [XPU], [HPU], [GCU], [DCU], [Iluvatar], [Metax]]
    • You can add new tags based on the PR content, but the semantics must be clear.
  • Format your code, run pre-commit before commit.
  • Add unit tests. Please write the reason in this PR if no unit tests.
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@EmmonsCurse
Copy link
Collaborator Author

/skip-ci ci_iluvatar
/skip-ci ci_hpu
/skip-ci build_xpu
/skip-ci gpu_4cards_test
/skip-ci pre_ce_test
/skip-ci stable_test
/skip-ci base_test
/skip-ci logprob_test

@paddle-bot
Copy link

paddle-bot bot commented Mar 25, 2026

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Mar 25, 2026
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@482f951). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #7021   +/-   ##
==========================================
  Coverage           ?   73.66%           
==========================================
  Files              ?      399           
  Lines              ?    56401           
  Branches           ?     8925           
==========================================
  Hits               ?    41548           
  Misses             ?    11889           
  Partials           ?     2964           
Flag Coverage Δ
GPU 73.66% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@EmmonsCurse EmmonsCurse merged commit 61ebac4 into PaddlePaddle:develop Mar 26, 2026
38 checks passed
@EmmonsCurse EmmonsCurse deleted the fix_unit_test_0325 branch March 26, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants